{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
  <h2>欢迎您 {/$_adminname/}</h2>
  <p id="page-intro">商品销售。带<font class="red"> * </font>为必填项目。先把商品加入订单。所有商品都加人订单后点<font class="red">确认提交</font>完成！</p>
  <div class="clear"></div>
  <div class="content-box">
    <div class="content-box-header">
      <h3>商品销售</h3>
      <ul class="content-box-tabs">
        <li><a href="{/get_url rule="/sales/index"/}">销售明细</a></li>
        <li><a href="#tab1" class="default-tab">商品出库</a></li>
        <li><a href="{/get_url rule="/sales/return"/}">商品退货</a></li>
      </ul>
      <div class="clear"></div>
    </div>
    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <div class="form">
          <form action="{/get_url rule='/sales/sales'/}" method="post" id="js-form">
            <fieldset class="clearfix">
                <p>
                  <label class="w80"><font class="red"> * </font>商品条形码：</label>
                  <span>
                  <input type="text" value="" class="text-input small-input" name="goods_sn" id="goods_sn" />
                  </span> </p>
                <p>
                  <label class="w80"><font class="red"> * </font>数量：</label>
                  <span>
                  <input type="text" value="1" class="text-input min-input" name="num" />
                  </span> <small>计重商品单位为千克</small></p>
              <dt>
                <input type="submit" name="" id="button" class="button" value="加人订单" />&nbsp;<a href="{/get_url rule='/sales/sales' data="ac=del"/}">重新出库</a> </dt>
            </fieldset>
          </form>
        </div>
        <hr />
        <table>
          <thead>
            <tr>
              <th>名称</th>
              <th>数量</th>
              <th>单价（元）</th>
              <th>总价（元）</th>
              <th>优惠总价（元）</th>
            </tr>
          </thead>
          <tfoot>
            <tr>
              <td colspan="5">{/$pagebar/}</td>
            </tr>
          </tfoot>
          <tbody>
          {/section name=i loop=$info/}
          {/assign var="impress" value=$info[i].out_price*$info[i].num/}
          <tr>
            <td>{/$info[i].goods_name/}</td>
            <td>{/$info[i].num/}</td>
            <td>{/$info[i].out_price/}</td>
            <td>{/$info[i].out_price*$info[i].num/}</td>
            <td>{/$info[i].p_discount*$info[i].num/}</td>
          </tr>
          {/sectionelse/}
          <tr>
            <td colspan="5">暂无商品</td>
          </tr>
          {//section/}
          <tr>
            <th colspan="5" align="right">总价：{/$total/}元，优惠：{/$discount/}元。<span class="red">小计：{/$total-$discount/}元</span></th>
          </tr>
            </tbody>
        </table>
        <div class="form">
          <form action="{/get_url rule='/sales/out' data="oid=$order_id"/}" method="post" id="js-form2">
            <fieldset class="clearfix">
                <p>
                  <label class="w80">会员卡号：</label>
                  <span>
                  <input type="text" value="" class="text-input small-input" name="cardid" />
                  </span><br /><small>填写会员卡卡号</small></p>
              <dt>
                <input type="submit" name="" class="button" id="button" value="确认提交" />
              </dt>
            </fieldset>
          </form>
        </div>
      </div>
    </div>
  </div>
  {/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/}